package com.elephant.core.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: hai
 * @Date: 2019/1/3 10:45
 */
@RestController
@RequestMapping("/user")
public class UserRegisterController {

    @Autowired
    private UserRegisterService userRegisterService;

    @RequestMapping("/register")
    public String register(User user){

        userRegisterService.register(user);
        return "注册成功";
    }
}
